<html>
<head>
    <meta charset="UTF-8">
    <title>权限添加</title>
    <link rel="stylesheet" type="text/css" href="css/news.css">
    <script src="js/jquery-1.8.2.min.js"></script>
    <script>
        $(function(){
            $("#public").load("./public.html");
        });
    </script>
</head>
<body>
<div>
	<div id="public"></div>
	<div class="news_top">
		<span style="margin-left: 30px; font-size: 18px">权 限 添 加 </span>
		<a href="control_list.html" class="news_show_title">权限展示</a>
	</div>
	<div class="news_add_main">
		<form method="post">
	        <table width="88%" border="0" class="tableBasic" >
	            <tr>
	                <td width="200" align="right" style="font-size: 16px;">权限名称 ： 　</td>
	                <td align="left">
	                    　<input type="text" name="control_name" value="" size="40" class="newsMain" />
	                </td>
	            </tr>
	            <tr>
	                <td width="200" align="right" style="font-size: 16px;">权限内容 ： 　</td>
	                <td align="left">
	                    　<input type="text" name="control_content" value="" size="40" class="newsMain" />
	                </td>
	            </tr>
	            <tr>
	                <td align="right" style="font-size: 12px;"></td>
	                <td align="left" >
	                   　<input type="submit" value="保存" style="padding: 5px 10px 5px 10px" />
	                   　<input type="reset" value="重置" style="padding: 5px 10px 5px 10px"  />
	                </td>
	            </tr>
	        </table>
    	</form>
	</div>
</div>
<script>
axios.post('http://10.101.147.56/month3/tp5.0/public/admin/control/addControl', {
			firstName: 'Fred',
			lastName: 'Flintstone'
		})
		.then(function (response) {
			console.log(response);
		})
		.catch(function (error) {
			console.log(error);
		});
</script>
</body>
</html>